private["_player"];

_player = _this select 0;

private _player_other = [_player] call fn_getOtherPlayer;

if(isNull _player_other) then
{
	_player_other = [_player] call fn_getOtherPlayer2;
};

if(isNull _player_other) then
{
	waitUntil{sleep 1;!isNil "as_start_pos"};
	_player setPos as_start_pos;
	//加上true代表广播
	_player setVariable ["tp_ed", 1, true];
}
else
{
	private _veh = vehicle _player_other;
	if(_veh != _player_other) then
	{
		if !(_player moveInAny _veh) then
		{
			_player setVehiclePosition [getMarkerPos "mk_players", [], 0, "NONE"];
		}
		else
		{
			//加上true代表广播
			_player setVariable ["tp_ed", 1, true];
		};
	}
	else
	{
		_player setVehiclePosition [getPosATL _player_other, [], 0, "NONE"];
		//加上true代表广播
		_player setVariable ["tp_ed", 1, true];
	};
};




